﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
         CodeBehind="Default.aspx.cs" Inherits="TodoList._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Todo List
    </h2><asp:TextBox ID="txtNewTodo" runat="server"></asp:TextBox><asp:Button runat="server" Text="Grava" OnClick="GridInsert" />
    <asp:GridView ID="TodoGrid" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                  BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                  CellPadding="4" ForeColor="Black" GridLines="Vertical" 
                  OnRowDeleting="GridDelete" OnRowEditing="GridEdit" OnRowCancelingEdit="GridCancelEdit" OnRowUpdating="GridUpdate">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            
            <asp:BoundField DataField="Title" HeaderText="Tarefa" />
            <asp:CheckBoxField DataField="Done" />
            <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" />
        </Columns>
        
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
        
    </asp:GridView>
</asp:Content>